-- GENERATED SPELL FOR [Ranger Lord Hawkspear] --


function spell0_10824(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10824', 6256, 1)
end

function spell1_10824(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10824', 653, 1)
end

function spell2_10824(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10824', 616, 1)
end

function Sorts_10824(pUnit, Event)
local choix_sorts_10824 = math.random(0, 2)
if choix_sorts_10824 == 0 then
pUnit:RegisterEvent('spell0_10824', 1, 1)
end
if choix_sorts_10824 == 1 then
pUnit:RegisterEvent('spell1_10824', 1, 1)
end
if choix_sorts_10824 == 2 then
pUnit:RegisterEvent('spell2_10824', 1, 1)
end
end

function mob10824_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10824', math.random(1500, 3000), 1)
end

function mob10824_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10824_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10824_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10824, 1, 'mob10824_Action')
RegisterUnitEvent(10824, 2, 'mob10824_Leave')
RegisterUnitEvent(10824, 3, 'mob10824_Kill')
RegisterUnitEvent(10824, 4, 'mob10824_Die')
